@import "~@/assets/less/variables.less";
#index {
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  .user-name {
    font-size: 16px;
    line-height: 36px;
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    user-select: none;
    transition: all 200ms ease-out;
    .avatar {
      width: 36px;
      height: 36px;
      color: @Text2;
      line-height: 36px;
      text-align: center;
      border-radius: 50%;
      background-color: @Dom-bg;
      margin-right: 20px;
    }
    .com-name {
      color: @title;
      letter-spacing: 8px;
    }
  }
  .sections-nav {
    width: 120px;
    color: @title;
    font: 24px/32px "D","Lucida Grande",verdana,sans-serif;
    transition: all 200ms ease-out;
    user-select: none;
    margin-left: 36px;
    position: absolute;
    top: 40%;
    left: 10%;
    .selection {
      background: @Dom-bg;
      border-radius: 5px;
      display: block;
      position: absolute;
      top: 0;
      left: -36px;
      height: 80px;
      width: 6px;
      transition: all 240ms cubic-bezier(0.145, 1.075, 0.345, 1.12) 60ms;
      transition-duration: 400ms;
      opacity: 1;
      transition-delay: 260ms
    }
    li {
      height: 80px;
      padding-top: 10px;
      margin-bottom: 20px;
      cursor: pointer;
      i {
        width: 28px;
        height: 3px;
        background: @Dom-bg;
        display: block;
        margin-bottom: 5px;
      }
      .two {
        width: 26px;
      }
      .three {
        width: 15px;
      }
      .desc {
        font-size: 16px;
      }
    }
    .about {
      .name {
        display: flex;
        .bar {
          margin: 6px 0 0 10px;
        }
      }
    }
  }
  .about .selection{
    top: 0;
  }
  .blog .selection{
    top: 110px;
  }
  .items .selection{
    top: 220px;
  }
  .spinner {
    :hover .text {
      color: #fff !important;
    }
    :hover .the-circle{
      opacity: 1;
      transform: scale(1.08) translateZ(0);
    }
    :hover .full-preview .big-circle.actual {
      opacity: 1;
      transform: scale(1.08) translateZ(0) !important;
    }
    width: 400px;
    height: 400px;
    position: absolute;
    top: 35%;
    right: 10%;
    transition: all 300ms ease-in-out 200ms;
    transform: rotateZ(0) translateZ(0);
    .rings {
      position: absolute;
      top: 0;
      left: 0;
      height: 100%;
      width: 100%;
      transition: all 800ms ease;
      opacity: 0.15;
      cursor: pointer;
      transform: scale(1) rotateZ(-300deg);
      .ring {
        height: 350px;
        width: 350px;
        border: 6px solid @Border3;
        border-radius: 50%;
        margin: -178px 0 0 -178px;
        position: absolute;
        top: 50%;
        left: 50%;
        pointer-events: none;
        animation-name: spin;
        animation-timing-function: linear;
        animation-iteration-count: infinite;
        animation-fill-mode: none;
        animation-delay: 700ms;
      }
      .group-1{
        .ring2 {
          width: 320px;
          height: 320px;
          border: 2px dashed @Border2;
          opacity: .8;
          margin: -159px 0 0 -159px;
        }
        .ring3 {
          width: 375px;
          height: 375px;
          border: 2px solid @Border1;
          margin: -187px 0 0 -187px;
        }
        .ring4 {
          width: 300px;
          height: 300px;
          background: url("~@/assets/images/index/timg.png") no-repeat;
          background-size: 336px 336px;
          border: none;
          background-position-x: -17px;
          background-position-y: -19px;
          margin: -146px 0 0 -145px;
          animation-direction: reverse;
        }
      }
      .group-2 {
        .ring-one {
          border: none;
          height: 550px;
          width: 550px;
          background: url("~@/assets/images/index/ring.png") no-repeat;
          background-size: 550px 550px;
          margin: -272px 0 0 -272px;
          opacity: .6;
        }
      }
      .zero,.one {
        .ring {
          animation-duration: 70s;
        }
      }
      .one {
        .ring {
          animation-direction: reverse;
        }
      }
    }

    .about-proview {
      position: absolute;
      top: 2%;
      left: 50%;
      cursor: pointer;
    }
    .blog-proview {
      position: absolute;
      top: 72%;
      left: 89.5%;
      cursor: pointer;
    }
    .items-proview {
      position: absolute;
      top: 72%;
      left: 8.5%;
      cursor: pointer;
    }
    .mini-preview {
      background: @Dom-bg;
      border: 10px solid @My-bg;
      border-radius: 60px;
      display: block;
      margin: -45px 0 0 -45px;
      opacity: 1;
      position: absolute;
      top: 0;
      left: 0;
      height: 80px;
      width: 80px;
      color: @title;
      transition: all 200ms ease-out 200ms;
      transform: scale(0.6);
      .symbol {
        display: block;
        color: #000;
        position: absolute;
        text-align: center;
        top: 0;
        left: 0;
        height: 80px;
        width: 100%;
        transition: all 300ms ease-in-out 200ms;
        transform: translateZ(0);
        .text {
          color: @title;
          display: block;
          line-height: 80px;
          margin: 0;
          text-align: center;
          text-transform: uppercase;
          width: auto;
          transition: all 150ms ease-out;
        }
      }
    }
    .full-preview {
      display: block;
      margin: -80px 0 0 -80px;
      position: absolute;
      top: 0;
      left: 0;
      height: 160px;
      width: 160px;
      transition: all 200ms ease 200ms;
      opacity: 0;
      transform: scale(0.8);
      .big-circle {
        background: @Dom-bg;
        border-radius: 80px;
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        height: 160px;
        width: 160px;
      }
    }

    .big-circle.backdrop {
      background: @My-bg;
      transform: scale(1.16);
    }
    .full-preview.blog .big-circle.actual,
    .full-preview.items .big-circle.actual{
      background: @Dom-bg;
      opacity: 0.95;
      transform: scale(1) translateZ(0);
      transition: all 130ms ease-out;
    }
    .full-preview.blog .full-preview {
      transform: scale(0.8) rotateZ(120deg);
    }
    .full-preview.items .full-preview {
      transform: scale(0.8) rotateZ(-120deg);
    }
  }
  @media screen and (max-height: 900px) {
    .user-name,.sections-nav{
      left: 10%;
      margin-left: 0;
      justify-content: start;
      transform: translate(0,0);
    }
  }

  @keyframes spin {
    0% {
      transform: rotateZ(0)
    }

    100% {
      transform: rotateZ(360deg)
    }
  }
  .footer {
    color: @title;
    cursor: pointer;
    font: 16px/0.95 "D","Lucida Grande",verdana,sans-serif;
  }
  .footer:hover {
    color: @Text2;
  }
  .tips{
    color: @title;
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translate(-50%,-50%);
    font: 12px/0.95 "D","Lucida Grande",verdana,sans-serif;
  }
  .tips:hover {
    color: @Text2;
  }
}

.about-circles {
  height: 175px;
  width: 180px;
  .circle {
    display: block;
    position: absolute;
    height: 60px;
    width: 60px;
    opacity: 0;
    transition: all 320ms ease 240ms;
    transform: scale(0.65);
    .the-circle {
      background: @Dom-bg;
      border-radius: 80px;
      position: absolute;
      top: 0;
      left: 0;
      height: 100%;
      width: 100%;
      opacity: 0.95;
      transform: scale(1) translateZ(0);
      transition: all 130ms ease-out;
    }
    strong {
      color: @Text3;
      display: block;
      font: 36px/0.95 "D","Lucida Grande",verdana,sans-serif;
      position: relative;
      text-align: center;
      transform: translateZ(0);
      backface-visibility: hidden;
    }
    small {
      color: #fff;
      display: block;
      font: 16px/18px "D","Lucida Grande",verdana,sans-serif;
      letter-spacing: 1px;
      position: relative;
      text-align: center;
      text-transform: uppercase;
      transform: translateZ(0);
      backface-visibility: hidden;
    }
  }
  .circle.full.run .the-circle {
    transition-delay: 70ms;
  }
  .circle.backdrop {
    background: @My-bg;
    border-radius: 80px;
  }
  .circle.run {
    top: 26px;
    left: -30px;
    height: 130px;
    width: 130px;
    transform: scale(0.35);
    strong {
      margin: 34px 0 6px 0;
    }
  }
  .circle.second {
    top: 22px;
    left: 112px;
    strong {
      font-size: 24px;
      margin: 12px 0 0 0;
    }
    small {
      font-size: 10px;
    }
  }
  .circle.third {
    top: 97px;
    left: 108px;
    height: 55px;
    width: 55px;
    strong {
      font-size: 22px;
      margin: 12px 0 0 0;
    }
    strong.big-number {
      font-size: 16px;
      margin-top: 14px;
    }
    small {
      font-size: 10px;
    }
  }
  .circle.full {
    transform: scale(1) translateZ(0);
  }
}
.spinner.about .about-circles .circle {
  opacity: 1;
  transition-duration: 320ms;
}

.spinner.about .about-circles .circle.backdrop {
  transform: scale(1.35);
}

.spinner.about .about-circles .circle.run {
  transition-delay: 0ms;
}

.spinner.about .about-circles .circle.second {
  transition-delay: 240ms;
}

.spinner.about .about-circles .circle.third {
  transition-delay: 400ms;
}

.spinner.about .about-circles .circle.run.backdrop {
  transform: scale(1.2);
}

#index.go .rings {
  opacity: 1;
  transform: scale(1) rotateZ(0);
}
#index.go .mini-preview {
  opacity: 1;
  transform: scale(1);
}
#index .spinner.about .about-proview .mini-preview,
#index .spinner.blog .blog-proview .mini-preview,
#index .spinner.items .items-proview .mini-preview {
  opacity: 0;
  transform: scale(1.5);
  transition-delay: 400ms;
}

#index .spinner.blog .about-proview .mini-preview .symbol {
  transform: rotateZ(120deg) translateZ(0);
}

#index .spinner.blog .items-proview .mini-preview .symbol {
  transform: rotateZ(120deg) translateZ(0);
}

#index .spinner.items .about-proview .mini-preview .symbol {
  transform: rotateZ(-120deg) translateZ(0);
}

#index .spinner.items .blog-proview .mini-preview .symbol {
  transform: rotateZ(-120deg) translateZ(0);
}

#index .spinner.about .about-proview .full-preview,
#index .spinner.blog .blog-proview .full-preview,
#index .spinner.items .items-proview .full-preview {
  opacity: 1;
  transform: scale(1);
  transition-delay: 400ms;
}

//.about-proview .full-preview {
//  transform: rotateZ(-120deg) translateZ(0);
//}
#index .spinner.blog .blog-proview .full-preview {
  transform: rotateZ(120deg) translateZ(0);
}
#index .spinner.items .items-proview .full-preview {
  transform: rotateZ(-120deg) translateZ(0);
}
#index .spinner.about {
  transform: rotateZ(0deg) translateZ(0);
}
#index .spinner.blog {
  transform: rotateZ(-120deg) translateZ(0);
}
#index .spinner.items {
  transform: rotateZ(-240deg) translateZ(0);
}
#index .spinner.blog .blog-proview .mini-preview .text{
  color: #fff !important;
}
.blog-contents,.items-contents {
  display: block;
  font: 36px/0.95 "D","Lucida Grande",verdana,sans-serif;
  text-align: center;
  backface-visibility: hidden;
  position: absolute;
  top: 65px;
  left: 50%;
  transform: translate(-50%,-50%);
  strong {
    display: block;
    color: @Text3;
    font: 36px/0.95 "D","Lucida Grande",verdana,sans-serif;
    margin: 12px 0 0 0;
  }
  small {
    color: #fff;
    font: 20px/0.95 "D","Lucida Grande",verdana,sans-serif;
  }
}
.content {
  width: 400px;
  height: 400px;
  position: absolute;
  left: 3px;
  top: 0px;
  pointer-events: none;
}
.content.blog {
  left: 10px;
  top: 2px;
}
.content.items {
  left: 3px;
  top: 9px;
}
#index .spinner.about .content {
  transform: rotateZ(0deg);
  transition-delay: 600ms;
}
#index .spinner.blog .content {
  transform: rotateZ(120deg);
  transition-delay: 600ms;
}
#index .spinner.items .content {
  transform: rotateZ(-120deg);
  transition-delay: 600ms;
}
.content .about-content,
.content .blog-content,
.content .items-content {
  margin: -100px 0 0 -100px;
  position: absolute;
  top: 50%;
  left: 50%;
  text-align: center;
  height: 200px;
  width: 200px;
  transition: all 320ms ease-out;
  transform: scale(0.95) translateY(-10px);
  pointer-events: none;
  opacity: 0;
}
#index .content.about .about-content,
#index .content.blog .blog-content,
#index .content.items .items-content {
  transform: none;
  transition-delay: 600ms;
  opacity: 1;
}
.about-content,.blog-content,.items-content {
  border: 3px solid @My-bg;
  border-radius: 50%;
  background: url("~@/assets/images/user/header.jpg") no-repeat;
  background-size: cover;
  cursor: pointer;
  box-shadow: 0 0 40px @My-bg;
  img, i {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    animation: scaleout 1.3s infinite ease-in-out;
  }
  @keyframes scaleout {
    0% {
      transform: scale(1.0);
    }

    100% {
      transform: scale(1.1);
      opacity: 0;
    }
  }
  .btn {
    padding: 4px 10px;
    background-color: @My-bg;
    border-radius: 5px;
    display: block;
    color: @title;
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translate(-50%,-50%);
    transition: all 320ms ease-in-out;
  }
}
.blog-content {
  background: url("~@/assets/images/index/blog.jpg") no-repeat;
  background-size: cover;
}
.items-content {
  background: url("~@/assets/images/index/github.jpg") no-repeat;
  background-size: cover;
}
.rings:hover .btn {
  color: #fff;
  background-color: @Dom-bg;
  transition: all 320ms ease-in-out;
}

@media screen and (max-width: 698px) {
  #index.go .spinner.about,
  #index.go .spinner.blog,
  #index.go .spinner.items {
    pointer-events: none;
    top: 25%;
    right: -30%;
    z-index: -1;
    opacity: .4;
  }
  #index.go .sections-nav {
    left: 42px;
    top: 35%;
    margin-left: 0;
    justify-content: start;
    transform: translate(0,0);
  }
  #index.go .user-name {
    left: 35%;
    top: 4%;
    transform: translate(-50%, -50%);
  }
  #index .spinner.about {
    transform: scale(0.8) rotateZ(0deg) translateZ(0);
  }
  #index .spinner.blog {
    transform: scale(0.8) rotateZ(-120deg) translateZ(0);
  }
  #index .spinner.items {
    transform: scale(0.8) rotateZ(-240deg) translateZ(0);
  }
}

@media screen and (max-width: 768px) and (min-width: 700px){
  #index.go .user-name {
    left: 25%;
    top: 8%;
    transform: translate(-50%, -50%);
  }
  #index.go .sections-nav {
    left: 10%;
    top: 48%;
    margin-left: 0;
    justify-content: start;
    transform: translate(0,0);
  }
  #index.go .spinner.about,
  #index.go .spinner.blog,
  #index.go .spinner.items {
    top: 25%;
    right: 7%;
    opacity: 1;
  }
}
